<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>v-if</title>
    <script src="../js/vue2.js"></script>
</head>
<body>
    <div id="app">
        <h1 v-if="!isShow">你看得见我吗？</h1>                   
        <h1 v-else>NO</h1>                                                          
    </div>
</body>
<script>
    var ms = new Vue({
        el:"#app",
        data:{
            isShow:true,
        }
    })
</script>
</html>